<template>
	<div class="detailsactor">
		<iframe id="google_ads_frame2" name="google_ads_frame2" frameborder="0" :src="currentUrl" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="true" allowfullscreen="true"></iframe>
	    <router-link :to='{name:"searchActor"}'>
	    	<div class="goTop" >
	    	返回上一级
	        </div>
	    </router-link>
	</div>

</template>

<script>
export default{
	name:'actorDetail',
	data(){
		return{
			currentUrl:''
		}
	},
	created(){
		var nowId=this.$route.query.id;
		this.$axios.get('http://localhost:3000/peopleInfo')
		.then(res=>{
//			console.log(res.data.peopleInfo)
			var newData=res.data.peopleInfo;
			for(var i=0;i<newData.length;i++){
				var currentUrl=newData[nowId].detailsHref;
			}
			this.currentUrl=currentUrl;
//			console.log(this.currentUrl)
		})
		.catch(error=>{
			console.log(error)
		})
	}
}
</script>

<style scoped lang="less">
@current:100rem;
.detailsactor{
	iframe{
		width: 100%;
		height: 1400px;
	}
	.goTop{
			border-radius: 15/@current;
			padding: 0 20/@current;
			height: 100/@current;
			line-height: 100/@current;
			font-size: 24/@current;
			color: #b676eb;
			position: fixed;
			right: 20/@current;
			bottom: 20/@current;
			background-color: white;
		}
}
</style>